provider Teams DELETE
/api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/ @utdk/sentry
/api/0/organizations/{organization_id_or_slug}/members/{member_id}/teams/{team_id_or_slug}/ Delete an Organization Member from a Team
Delete an organization member from a team.
Note the permission scopes vary depending on the type of authorization token. The following
table outlines the accepted scopes.
<table style="width: 100%;">
<tr style="width: 50%;">
<td style="width: 50%; text-align: center; font-weight: bold; vertical-align: middle;"><a href="https://docs.sentry.io/api/auth/#auth-tokens">Org Auth Token</a></td>
<td style="width: 50%; text-align: left;">
<ul style="list-style-type: none; padding-left: 0;">
<li><strong style="color: #9c5f99;">• org:write</strong></li>
<li><strong style="color: #9c5f99;">• org:admin</strong></li>
<li><strong style="color: #9c5f99;">• team:admin</strong></li>
</ul>
</td>
</tr>
<tr style="width: 50%;">
<td style="width: 50%; text-align: center; font-weight: bold; vertical-align: middle;"><a href="https://docs.sentry.io/api/auth/#user-authentication-tokens">User Auth Token</a></td>
<td style="width: 50%; text-align: left;">
<ul style="list-style-type: none; padding-left: 0;">
<li><strong style="color: #9c5f99;">• org:read*</strong></li>
<li><strong style="color: #9c5f99;">• org:write</strong></li>
<li><strong style="color: #9c5f99;">• org:admin</strong></li>
<li><strong style="color: #9c5f99;">• team:admin</strong></li>
<li><strong style="color: #9c5f99;">• org:read + team:admin**</strong></li>
</ul>
</td>
</tr>
</table>
\***`org:read`** can only be used to remove yourself from the teams you are a member of.
\*\*Team Admins must have both **`org:read`** and **`team:admin`** scopes in their user
authorization token to delete members from their teams.
- organization_id_or_slug path required
- The ID or slug of the organization the resource belongs to.
- string
- member_id path required
- The ID of the organization member to delete from the team
- string
- team_id_or_slug path required
- The ID or slug of the team the resource belongs to.
- string
Try it
Authentication
Configure credentials for API Reference
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sentry from '@utdk/sentry';
await sentry.deleteAnOrganizationMemberFromATeam()